package cn.arikeky.basic.constant;

/**
 * 公共常量
 */

public class BaseConstant {
    public class SmsConstant{
        // 用户名
        public static final String UID = "白若珣A";
        // 短信密钥
        public static final String KEY = "5FB9DDC32F923882972AFEC01564CC11";

    }

    public class VerifyCodeConstant {
        // 用于拼接手机号的业务键
        public static final String BUSINESS_REGISTER_PREFIX = "register:smscode:%s";
        // 登录业务键
        public static final String BINDER_REGISTER_PREFIX = "binder:smscode:%s";
        // 用于拼接邮件的业务键
        public static final String EMAIL_REGISTER_PREFIX = "email:code:%s";
    }

    public class WxLoginConstant{
        // 微信登录Appid
        public static final String WX_LOGIN_APPID = "wxd853562a0548a7d0";
        // 微信登录SECRET
        public static final String WX_LOGIN_SECRET = "4a5d5615f93f24bdba2ba8534642dbb6";
        // 微信登录请求获取token地址
        public static final String WX_LOGIN_TOKEN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=%s&secret=%s&code=%s&grant_type=authorization_code";
        // 获取用户信息
        public static final String WX_LOGIN_USER_INFO = "https://api.weixin.qq.com/sns/userinfo?access_token=%s&openid=%s";
    }
}